package com.yulinlin.admin.modules.im.domain;

import com.yulinlin.common.domain.SuperEntity;

import com.yulinlin.admin.modules.im.domain.enums.ImSessionEnums;
import com.yulinlin.data.core.anno.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;



@Data
@ApiModel("会话")
@JoinTable("im_session")
public class ImSessionEntity extends SuperEntity<ImSessionEntity>  {









        @NotEmpty(message = "必填")
        @ApiModelProperty("标题")
        @JoinWhere
        @JoinField
        private String title;





        @NotEmpty(message = "必填")
        @ApiModelProperty("内容")
        @JoinWhere
        @JoinField
        private String content;

















        @NotEmpty(message = "必填")
        @ApiModelProperty("私聊 群聊")
        @JoinWhere
        @JoinField
        private ImSessionEnums.sessionType sessionType;





        @NotEmpty(message = "必填")
        @ApiModelProperty("发起人")
        @JoinWhere
        @JoinField
        private String fromUser;





        @NotEmpty(message = "必填")
        @ApiModelProperty("接收人")
        @JoinWhere
        @JoinField
        private String toUser;





        @NotEmpty(message = "必填")
        @ApiModelProperty("状态 正常 冻结")
        @JoinWhere
        @JoinField
        private ImSessionEnums.status status;





        @NotEmpty(message = "必填")
        @ApiModelProperty("头像")
        @JoinWhere
        @JoinField
        private String logo;






}
